html {
    --theme-color: #B6E4E2;
}

* {
    padding: 0;
    margin: 0;
}

body {
    /*linear-gradient*/
    background: linear-gradient(#22222233, #22222233), url('../img/wallhaven-q2oxdd.png');
    background-repeat: no-repeat;
    background-size:cover;
}

.container {
    display: flex;
    height: 100vh;
    flex-direction: column;
}

.container .main {
    display: flex;
    position: relative;
    overflow: hidden;
    flex-direction: row;
    flex-grow: 1;
}

.container .bottom {
    position: relative;
    display: flex;
    height: 70px;
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: space-between;
    box-shadow: -13px 0 15px 10px rgb(0 0 0 / 20%);
    background-color: rgba(0, 0, 0, .25);
}

.main .playlist {
    position: fixed;
    width: 310px;
    height: calc(100vh - 70px);
    left: 0;
    backdrop-filter: blur(2px);
    box-sizing: border-box;
    user-select: none;
    background-color: rgba(0, 0, 0, .15);
    transition: left .25s ease-in-out;
}

.playlist .playlist-name {
    height: 72px;
    width: inherit;
    padding-left: 20px;
    padding-top: 30px;
    color: #ffffff;
    font-weight: normal;
    font-size: 20px;
    box-sizing: border-box;
}

.playlist .list-container {
    width: 310px;
    height: calc(100vh - 70px - 72px - 4px);
    list-style: none;
    overflow-y: scroll;
    overflow-x: hidden;
}

.playlist .list-container::-webkit-scrollbar {
    display: none;
    width: 10px;
}

.playlist .list-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, .3);
    border-radius: 5px;
}

#playlist-drawer-toggle {
    display: none;
    position: absolute;
}

#playlist-drawer-toggle-label {
    display: block;
    position: absolute;
    width: 15px;
    height: 60px;
    left: 311px;
    top: 50%;
    backdrop-filter: blur(2px);
    background-color: rgba(0 0 0 / 10%);
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
    transition: left .25s ease-in-out;
    z-index: 2;
}

.playlist .list-container .music-item {
    display: flex;
    height: 35px;
    padding: 10px 13px 10px 20px;
    color: #ffffff;
    font-size: 13px;
    opacity: 0.68;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    cursor: default;
}

.music-item-active {
    color: var(--theme-color) !important;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, .1);
}

.music-item .music-name {
    display: inline-block;
    width: 180px;
    height: 35px;
    line-height: 35px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-item .left {
    display: flex;
    align-items: center;
}

.playlist .music-item:hover {
    border-radius: 5px;
    background-color: rgba(255, 255, 255, .1);
}

#playlist-drawer-toggle:checked ~ #playlist {
    left: -337px;
}

#playlist-drawer-toggle:checked ~ #playlist-drawer-toggle-label {
    left: 0;
}

#playlist-drawer-toggle:checked ~ .lyric-area {
    width: 100vw;
    margin-left: 0;
}

.main .lyric-area {
    position: relative;
    display: flex;
    transition: .25s ease-in-out;
    padding-top: 10px;
    margin-left: 310px;
    width: calc(100vw - 310px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main .lyric-area .lyric-top {
    display: flex;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.lyric-area .lyric-top .search-box {
    display: flex;
    height: 30px;
    padding-left: 10px;
    padding-right: 20px;
    border-radius: calc(30px / 2);
    background-color: #fff;
    box-shadow: 13px 13px 10px rgba(0, 0, 0, 0.035),
    100px 100px 80px rgba(0, 0, 0, 0.07);
    opacity: .8;
    justify-content: center;
    align-items: center;
}

.lyric-top .search-box .search-input {
    width: 80px;
    border: none;
    user-select: none;
    outline: none;
    transition: width .2s;
}

.lyric-top .search-box .search-input:focus {
    width: 200px;
}

.lyric-top .search-box .search-btn {
    display: flex;
    width: 20px;
    height: 20px;
    margin-right: 3px;
    border: none;
    background-color: transparent;
    justify-content: center;
    align-items: center;

}

.search-btn::-webkit-input-placeholder {
    user-select: none;
}

.search-btn::-moz-placeholder {
    user-select: none;
}

.main .lyric-area .lyric-bottom {
    width: inherit;
    display: flex;
    align-items: center;
    justify-items: center;
    /*backdrop-filter: blur(.5);*/
    flex-grow: 1;
}

.lyric-bottom .lyrics-show {
    display: flex;
    position: relative;
    width: inherit;
    height: 300px;
    color: #ffffff;
    align-items: center;
    justify-items: center;
    overflow: hidden;
}

.lyric-bottom .lyrics-show::-webkit-scrollbar {
    display: none;
    width: 10px;
}

.lyrics-show .lyrics-display {
    display: flex;
    width: inherit;
    position: absolute;
    top: 96px;
    align-items: center;
    justify-items: center;
    flex-direction: column;
    transition: top ease-in-out .5s;
}

.lyrics-display div {
    font-size: 20px;
    margin-top: 12px;
    transition: font-size ease-in-out .5s;

}

.lyrics-display div.lyric-active {
    color: var(--theme-color);
    font-size: 25px;
}

.lyrics-display div.lyric-out {
    opacity: .5;
}

.bottom .music-progress-track {
    position: absolute;
    height: 2px;
    width: 100vw;
    top: -2px;
    background-color: #fff;
    opacity: .5;
}

.bottom .music-progress-slider {
    height: 2px;
    width: 0;
    background-color: var(--theme-color);
}

.bottom .music-control-left {
    display: flex;
    width: 300px;
    margin-left: 12px;
    font-size: 14px;
    align-items: center;
}

.bottom .music-cover {
    height: 57px;
    width: 57px;
    margin-right: 12px;
    border-radius: 5px;
    background: #fff url("https://p1.music.126.net/v4n1q4BqkFbbTYmMlAn-Tw==/109951167986586483.jpg?param=440y440");
    background-size: cover;
}

.bottom .music-name {
    margin-bottom: 5px;
    color: #fff;
    opacity: .8;
}

.bottom .music-artist {
    font-size: 12px;
    color: #fff;
    opacity: .68;
}

.bottom .music-control-mid {
    display: flex;
    height: 50px;
    width: 140px;
    justify-content: space-between;
    align-items: center;
}

.bottom .music-control-mid .play-control {
    display: flex;
    width: 50px;
    height: 50px;
    color: var(--theme-color);
    border: none;
    opacity: .8;
    background-color: transparent;
    justify-content: center;
    align-items: center;
}

.bottom .music-control-mid .prev-control {
    display: flex;
    width: 30px;
    height: 30px;
    color: var(--theme-color);
    border: none;
    opacity: .8;
    background-color: transparent;
    justify-content: center;
    align-items: center
}

.bottom .music-control-mid .next-control {
    display: flex;
    width: 30px;
    height: 30px;
    color: var(--theme-color);
    border: none;
    opacity: .8;
    background-color: transparent;
    justify-content: center;
    align-items: center;
}

.bottom .music-control-right {
    display: flex;
    width: 260px;
    margin-right: 12px;
    font-size: 13px;
    align-items: center;
    justify-content: space-between;
}

.bottom .music-control-right .music-play-time {
    margin-right: 30px;
    color: #fff;
    opacity: .8;
}

.volume-control-wrap {
    position: relative;
    width: 18px;
    height: 18px;
}


.volume-progress-wrap {
    position: absolute;
    display: none;
    width: 60px;
    height: 220px;
    bottom: 17px;
    left: calc(-60px / 2 + 50%);
    z-index: 5;
}

.volume-progress-wrap .volume-progress {
    display: flex;
    width: 60px;
    height: 200px;
    border-radius: 5px;
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.volume-progress::after {
    position: absolute;
    content: '';
    width: 15px;
    height: 15px;
    background-color: #fff;
    clip-path: polygon(0% 0%, 100% 0, 50% 50%);
    left: 23px;
    bottom: 5px
}

.volume-progress .volume-track {
    position: relative;
    width: 5px;
    height: 130px;
    background-color: #949DBC;
}

.volume-progress .volume-slider {
    position: absolute;
    width: 5px;
    height: 100%;
    bottom: 0;
    background-color: var(--theme-color);
}

.volume-progress .volume-track .volume-thumb {
    position: absolute;
    width: 15px;
    height: 15px;
    left: -5px;
    top: -6px;
    border-radius: 50%;
    background-color: #f2ecde;
}

.volume-progress .volume-text {
    user-select: none;
    margin-top: 12px;
    font-size: 13px;
}

.volume-control-wrap:hover .volume-progress-wrap {

    display: block;
}

.bottom-music-button {
    display: flex;
    width: 18px;
    height: 18px;
    color: #ffffff;
    border: none;
    opacity: .8;
    background-color: transparent;
    justify-content: center;
    align-items: center;
}

.bottom-music-button:hover {
    color: var(--theme-color);
}

#canvas {
    --canvas--width:750px;
    position: absolute;
    bottom: 2px;
    left: calc(50% - var(--canvas--width)/2);
    width: var(--canvas--width);
    height: 50px;
    z-index: 999;
}
